package com.impc.exception;

public enum ErrorEnum {
    UNKONW_ERROR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    LOGIN_ERROR(10000, "账户或密码错误"),
    TOOSHORT(100, "身高太矮"),
    TOOHIGH(101, "身高太高"),

    ;
    private Integer code;

    private String msg;

    ErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
